home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_bind.idb / usr / freeware / var / named / mkdns / local.make.script.z / local.make.script
Encoding:
Text File  |  1999-04-16  |  992 b   |  26 lines

  1. # Example Makefile to generate DNS hosts from the NIS hosts database
  2. #
  3. # This file, local.make.script, should be edited appropriately and placed in
  4. #    /var/yp.  It uses the script "mkdns" to generate DNS data for
  5. #    the subfoo.foo.com domain from the NIS domain of the same name.
  6. #    The appropriate changes are at least to correctly name the MX relays
  7. #    to chose correct MX preferences, and to delete or edit the -N
  8. #    arguments.  See also the files subfoo.hosts.soa and subfoo.soa:
  9. #    these files are for a subdomain named SUBFOO of the domain FOO.COM.
  10. #    The master of the DNS domain as well as default mail forwarder
  11. #    is the machine mas.subfoo.foo.com.  The default mail forwarder
  12. #    for the foo.com domain is the machine relay.foo.com.
  13. #
  14. # "$Revision: 1.1 $"
  15.  
  16.  
  17. localall: mkdns all
  18.  
  19. mkdns.time:hosts.time
  20.     /var/named/mkdns/mkdns -N "192.26.51 192.26.58 192.26.72" \
  21.         -s 5 -x "50 mas.subfoo.foo.com." -x "100 relay.foo.com." 
  22.     date "+$(UPDATEFMT) DNS data $(DATEFMT)"
  23.     touch $@
  24.  
  25. mkdns:    $$@.time
  26.